package top.gangster.lunan.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 使用这个系统的用户表，包含用户的登录与基础信息
 * </p>
 *
 * @author vic
 * @since 2021-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ID_WORKER_STR)
    private String userId;

    private String deptId;

    private String roleId;

    private String phoneNumber;

    private String username;

    private String uid;

    private String sex;

    private String avatar;

    private String password;

    private Boolean isEnable;

    @TableLogic
    private Integer isDeleted;
}

